package com.mytx.mapper;

import com.mytx.pojo.Present;
import com.mytx.pojo.PresentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface PresentMapper {
    /**
     * 查询所有礼物列表
     * @return
     */
    List<Present> selectAllPresent();

    /*------------------------------------------分割线----------------------------------------------------------------*/
    int countByExample(PresentExample example);

    int deleteByExample(PresentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Present record);

    int insertSelective(Present record);

    List<Present> selectByExample(PresentExample example);

    Present selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Present record, @Param("example") PresentExample example);

    int updateByExample(@Param("record") Present record, @Param("example") PresentExample example);

    int updateByPrimaryKeySelective(Present record);

    int updateByPrimaryKey(Present record);



}